//
//  FilePreview.h
//  file_open
//
//  Created by gl.inet on 2021/12/9.
//

#import <Foundation/Foundation.h>
#import <Flutter/Flutter.h>
#import <WebKit/WebKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface FilePreview : NSObject<FlutterPlatformView>
@property (strong, nonatomic) FlutterMethodChannel *channel;
@property (strong, nonatomic) WKWebView *webView;
- (instancetype)initWithFrame:(CGRect)frame
               viewIdentifier:(int64_t)viewId
                    arguments:(id _Nullable)args
              binaryMessenger:(NSObject<FlutterBinaryMessenger>*)messenger;

- (UIView*)view;

@end

NS_ASSUME_NONNULL_END
